﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using INSTA.BankApplication.Engine;
using NUnit.Framework;


namespace INSTA.BankApplication.Engine.Tests
{

    public class Test_GoldAccount
    {
        AccountBase _account;
        Customer _holder;
        double _amount;

        [SetUp]
        public void SetUp()
        {
            _amount = AccountFactory.MIN_DEPOSIT_GOLD;
            _holder = new Customer();
            _account = Bank.Instance().CreateAccount(_holder, _amount);
        }



        [Test]
        public void Test_Method_GetMaxOverdrawn()
        {
            Assert.IsTrue(_account.GetMaxOverdrawn() == 1000);
        }

        [Test]
        public void Test_Method_WithdrawMonthlyFees()
        {
            _account.WithdrawMonthlyFees();

            Assert.IsTrue(_account.Balance == _amount - 10);
        }




    }
}
